package org.dromara.netbar.domain.bo;

import org.dromara.netbar.domain.NetbarGiftPackItem;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 礼包-卡券关联业务对象 netbar_gift_pack_item
 *
 * @author Lion Li
 * @date 2025-07-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = NetbarGiftPackItem.class, reverseConvertGenerate = false)
public class NetbarGiftPackItemBo extends BaseEntity {

    /**
     * 关联ID
     */
    @NotNull(message = "关联ID不能为空", groups = { EditGroup.class })
    private Long packItemId;

    /**
     * 关联礼包ID
     */
    @NotNull(message = "关联礼包ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long packId;

    /**
     * 关联卡券模板ID
     */
    @NotNull(message = "关联卡券模板ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long couponId;

    /**
     * 卡券数量
     */
    @NotNull(message = "卡券数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long couponCount;


}
